package com.far.game.xiuzhen.common.database.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;

import java.time.LocalDateTime;
import java.io.Serializable;


/**
 * @author mike
 * @Date 2022-08-10 01:19:00
 */
@TableName("xz_user_partner")
@ApiModel(value = "UserPartner",description = "用户伙伴对象")
public class UserPartner  extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ApiModelProperty(value = "主键")
    @TableId(value = "tid", type = IdType.AUTO)
    private Integer tid;
    /**
     * 用户tid
     */
    @ApiModelProperty(value = "用户tid")
    private Integer userTid;
    /**
     * 伙伴固定ID
     */
    @ApiModelProperty(value = "伙伴固定ID")
    private String partnerSid;
    /**
     * 伙伴名称
     */
    @ApiModelProperty(value = "伙伴名称")
    private String partnerName;
    /**
     * 战斗位置
     */
    @ApiModelProperty(value = "战斗位置")
    private Integer fightPos;
    /**
     * 是否用户的主伙伴(主角色) 1是 ，0不是
     */
    @ApiModelProperty(value = "是否用户的主伙伴(主角色) 1是 ，0不是")
    private Integer isMasterPartner;
    /**
     * 从属主伙伴的sid
     */
    @ApiModelProperty(value = "从属主伙伴的sid")
    private String bodySid;
    /**
     * 是否上阵 1上阵， 0下阵
     */
    @ApiModelProperty(value = "是否上阵 1上阵， 0下阵")
    private Integer isPlayed;
    /**
     * 血量
     */
    @ApiModelProperty(value = "血量")
    private Long blood;
    /**
     * 品质
     */
    @ApiModelProperty(value = "品质")
    private Integer quality;
    /**
     * 进阶
     */
    @ApiModelProperty(value = "进阶")
    private Integer steps;
    /**
     * 职业
     */
    @ApiModelProperty(value = "职业")
    private Integer job;
    /**
     * 种族
     */
    @ApiModelProperty(value = "种族")
    private Integer race;
    /**
     * 飞升
     */
    @ApiModelProperty(value = "飞升")
    private Integer fly;
    /**
     * 轮回
     */
    @ApiModelProperty(value = "轮回")
    private Integer lifeBack;
    /**
     * 升星
     */
    @ApiModelProperty(value = "升星")
    private Integer star;
    /**
     * 最大血量
     */
    @ApiModelProperty(value = "最大血量")
    private Long maxBlood;
    /**
     * 能量
     */
    @ApiModelProperty(value = "能量")
    private Integer power;
    /**
     * 最大能量
     */
    @ApiModelProperty(value = "最大能量")
    private Integer maxPower;
    /**
     * 修为
     */
    @ApiModelProperty(value = "修为")
    private Long exp;
    /**
     * 等级
     */
    @ApiModelProperty(value = "等级")
    private Integer lev;
    /**
     * 灵币(游戏货币)
     */
    @ApiModelProperty(value = "灵币(游戏货币)")
    private Long gameCurrency;
    /**
     * 仙缘(充值的货币)
     */
    @ApiModelProperty(value = "仙缘(充值的货币)")
    private Long currency;
    /**
     * 灵液
     */
    @ApiModelProperty(value = "灵液")
    private Long pot;
    /**
     * 最大灵液
     */
    @ApiModelProperty(value = "最大灵液")
    private Long maxPot;
    /**
     * 攻击力
     */
    @ApiModelProperty(value = "攻击力")
    private Long attack;
    /**
     * 物理防御
     */
    @ApiModelProperty(value = "物理防御")
    private Long pdef;
    /**
     * 法防
     */
    @ApiModelProperty(value = "法防")
    private Long mdef;
    /**
     * 命中率
     */
    @ApiModelProperty(value = "命中率")
    private Double hit;
    /**
     * 闪避
     */
    @ApiModelProperty(value = "闪避")
    private Double dodge;
    /**
     * 暴击
     */
    @ApiModelProperty(value = "暴击")
    private Double crit;
    /**
     * 抗暴
     */
    @ApiModelProperty(value = "抗暴")
    private Double revolt;
    /**
     * 服务器ID
     */
    @ApiModelProperty(value = "服务器ID")
    private Integer serverId;
    /**
     * 所在区
     */
    @ApiModelProperty(value = "所在区")
    private Integer domainId;

    /**
     * 创建者
     */
    @ApiModelProperty(value = "创建者")
    private String createBy;

    /**
     * 更新者
     */
    @ApiModelProperty(value = "更新者")
    private String updateBy;


    @ApiModelProperty(value="创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createAt;

    /**
     * 更新时间
     */
    @ApiModelProperty(value="更新时间")
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateAt;
    public Integer getTid() {
        return tid;
    }

    public void setTid(Integer tid) {
        this.tid = tid;
    }

    public Integer getUserTid() {
        return userTid;
    }

    public void setUserTid(Integer userTid) {
        this.userTid = userTid;
    }

    public String getPartnerSid() {
        return partnerSid;
    }

    public void setPartnerSid(String partnerSid) {
        this.partnerSid = partnerSid;
    }

    public String getPartnerName() {
        return partnerName;
    }

    public void setPartnerName(String partnerName) {
        this.partnerName = partnerName;
    }

    public Integer getFightPos() {
        return fightPos;
    }

    public void setFightPos(Integer fightPos) {
        this.fightPos = fightPos;
    }

    public Integer getIsMasterPartner() {
        return isMasterPartner;
    }

    public void setIsMasterPartner(Integer isMasterPartner) {
        this.isMasterPartner = isMasterPartner;
    }

    public String getBodySid() {
        return bodySid;
    }

    public void setBodySid(String bodySid) {
        this.bodySid = bodySid;
    }

    public Integer getIsPlayed() {
        return isPlayed;
    }

    public void setIsPlayed(Integer isPlayed) {
        this.isPlayed = isPlayed;
    }

    public Long getBlood() {
        return blood;
    }

    public void setBlood(Long blood) {
        this.blood = blood;
    }

    public Integer getQuality() {
        return quality;
    }

    public void setQuality(Integer quality) {
        this.quality = quality;
    }

    public Integer getSteps() {
        return steps;
    }

    public void setSteps(Integer steps) {
        this.steps = steps;
    }

    public Integer getJob() {
        return job;
    }

    public void setJob(Integer job) {
        this.job = job;
    }

    public Integer getRace() {
        return race;
    }

    public void setRace(Integer race) {
        this.race = race;
    }

    public Integer getFly() {
        return fly;
    }

    public void setFly(Integer fly) {
        this.fly = fly;
    }

    public Integer getLifeBack() {
        return lifeBack;
    }

    public void setLifeBack(Integer lifeBack) {
        this.lifeBack = lifeBack;
    }

    public Integer getStar() {
        return star;
    }

    public void setStar(Integer star) {
        this.star = star;
    }

    public Long getMaxBlood() {
        return maxBlood;
    }

    public void setMaxBlood(Long maxBlood) {
        this.maxBlood = maxBlood;
    }

    public Integer getPower() {
        return power;
    }

    public void setPower(Integer power) {
        this.power = power;
    }

    public Integer getMaxPower() {
        return maxPower;
    }

    public void setMaxPower(Integer maxPower) {
        this.maxPower = maxPower;
    }

    public Long getExp() {
        return exp;
    }

    public void setExp(Long exp) {
        this.exp = exp;
    }

    public Integer getLev() {
        return lev;
    }

    public void setLev(Integer lev) {
        this.lev = lev;
    }

    public Long getGameCurrency() {
        return gameCurrency;
    }

    public void setGameCurrency(Long gameCurrency) {
        this.gameCurrency = gameCurrency;
    }

    public Long getCurrency() {
        return currency;
    }

    public void setCurrency(Long currency) {
        this.currency = currency;
    }

    public Long getPot() {
        return pot;
    }

    public void setPot(Long pot) {
        this.pot = pot;
    }

    public Long getMaxPot() {
        return maxPot;
    }

    public void setMaxPot(Long maxPot) {
        this.maxPot = maxPot;
    }

    public Long getAttack() {
        return attack;
    }

    public void setAttack(Long attack) {
        this.attack = attack;
    }

    public Long getPdef() {
        return pdef;
    }

    public void setPdef(Long pdef) {
        this.pdef = pdef;
    }

    public Long getMdef() {
        return mdef;
    }

    public void setMdef(Long mdef) {
        this.mdef = mdef;
    }

    public Double getHit() {
        return hit;
    }

    public void setHit(Double hit) {
        this.hit = hit;
    }

    public Double getDodge() {
        return dodge;
    }

    public void setDodge(Double dodge) {
        this.dodge = dodge;
    }

    public Double getCrit() {
        return crit;
    }

    public void setCrit(Double crit) {
        this.crit = crit;
    }

    public Double getRevolt() {
        return revolt;
    }

    public void setRevolt(Double revolt) {
        this.revolt = revolt;
    }

    public Integer getServerId() {
        return serverId;
    }

    public void setServerId(Integer serverId) {
        this.serverId = serverId;
    }

    public Integer getDomainId() {
        return domainId;
    }

    public void setDomainId(Integer domainId) {
        this.domainId = domainId;
    }



    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }


    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public LocalDateTime getCreateAt() {
        return createAt;
    }

    public void setCreateAt(LocalDateTime createAt) {
        this.createAt = createAt;
    }

    public LocalDateTime getUpdateAt() {
        return updateAt;
    }

    public void setUpdateAt(LocalDateTime updateAt) {
        this.updateAt = updateAt;
    }

    @Override
    public String toString() {
        return "UserPartner{" +
                "tid=" + tid +
                ", userTid=" + userTid +
                ", partnerSid=" + partnerSid +
                ", partnerName=" + partnerName +
                ", fightPos=" + fightPos +
                ", isMasterPartner=" + isMasterPartner +
                ", bodySid=" + bodySid +
                ", isPlayed=" + isPlayed +
                ", blood=" + blood +
                ", quality=" + quality +
                ", steps=" + steps +
                ", job=" + job +
                ", race=" + race +
                ", fly=" + fly +
                ", lifeBack=" + lifeBack +
                ", star=" + star +
                ", maxBlood=" + maxBlood +
                ", power=" + power +
                ", maxPower=" + maxPower +
                ", exp=" + exp +
                ", lev=" + lev +
                ", gameCurrency=" + gameCurrency +
                ", currency=" + currency +
                ", pot=" + pot +
                ", maxPot=" + maxPot +
                ", attack=" + attack +
                ", pdef=" + pdef +
                ", mdef=" + mdef +
                ", hit=" + hit +
                ", dodge=" + dodge +
                ", crit=" + crit +
                ", revolt=" + revolt +
                ", serverId=" + serverId +
                ", domainId=" + domainId +
                ", createAt=" + this.getCreateAt() +
                ", createBy=" + createBy +
                ", updateAt=" + this.getUpdateBy() +
                ", updateBy=" + updateBy +
                "}";
    }
}